home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Draft.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  4.3 KB  |  186 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _DRAFT_
  4. #define _DRAFT_
  5.  
  6. #ifndef _REFCTOBJ_
  7. #include "RefCtObj.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13. interface  ODDraft;
  14.  
  15. //==============================================================================
  16. // Classes used by this interface
  17. //==============================================================================
  18. interface   ODCanvas;
  19. interface   ODDocument;
  20. interface   ODFrame;
  21. interface   ODLink;
  22. interface   ODLinkSource;
  23. interface   ODLinkIterator;
  24. interface   ODLinkSourceIterator;
  25. interface   ODLinkSpec;
  26. interface   ODPart;
  27. interface   ODShape;
  28. interface   ODStorageUnit;
  29. interface    ODPersistentObject;
  30. interface    ODPartWrapper;
  31.  
  32. //==============================================================================
  33. // ODDraft
  34. //==============================================================================
  35.  
  36. interface ODDraft :  ODRefCntObject
  37. {
  38.  
  39.     ODDocument   GetDocument();
  40.     
  41.     ODDraftID    GetID();
  42.     
  43.     ODStorageUnit   AcquireDraftProperties();
  44.     
  45.     ODDraftPermissions  GetPermissions();
  46.     
  47.     ODStorageUnit   CreateStorageUnit();
  48.     
  49.     ODStorageUnit   AcquireStorageUnit(in ODStorageUnitID id);
  50.     
  51.     void      RemoveStorageUnit(in ODStorageUnit storageUnit);
  52.     
  53.     ODBoolean    IsValidID(in ODID id);
  54.     
  55.     ODDraftKey    BeginClone(in ODDraft destDraft, in ODFrame destFrame, in ODCloneKind kind);
  56.     
  57.     void      EndClone(in ODDraftKey key);
  58.     
  59.     void      AbortClone(in ODDraftKey key);
  60.  
  61.     ODID Clone(in ODDraftKey key, in ODID fromObjectID, in ODID toObjectID, in ODID scope);
  62.     
  63.     ODID WeakClone(in ODDraftKey key, in ODID objectID, in ODID toObjectID, in ODID scope);
  64.  
  65.     ODBoolean    ChangedFromPrev();
  66.     
  67.     void      SetChangedFromPrev();
  68.     
  69.     void      RemoveFromDocument();
  70.     
  71.     ODDraft     RemoveChanges();
  72.     
  73.     ODDraft     Externalize();
  74.     
  75.     ODDraft     SaveToAPrevious(in ODDraft to);
  76.     
  77.     ODFrame CreateFrame(
  78.             in ODObjectType    frameType,
  79.             in ODFrame        containingFrame,
  80.             in ODShape        frameShape,
  81.             in ODCanvas        biasCanvas,
  82.             in ODPart        part,
  83.             in ODTypeToken    viewType,
  84.             in ODTypeToken    presentation,
  85.             in ODBoolean    isSubframe,
  86.             in ODBoolean    isOverlaid);
  87.        
  88.     ODFrame AcquireFrame(in ODStorageUnitID id);
  89.     
  90.     void RemoveFrame(in ODFrame frame);
  91.     
  92.     ODPart CreatePart(in ODType partType,
  93.                         in ODEditor optionalEditor);
  94.     
  95.     ODPart AcquirePart(in ODStorageUnitID id);
  96.     
  97.     void ReleasePart(in ODPart part);
  98.     
  99.     void RemovePart(in ODPart part);
  100.     
  101.     ODLinkSpec CreateLinkSpec (in ODPart part, in ODByteArray data);
  102.  
  103.     ODLinkSource CreateLinkSource(in ODPart part);
  104.     
  105.     ODLinkSource AcquireLinkSource(in ODStorageUnitID id);
  106.     
  107.     ODLink AcquireLink(in ODStorageUnitID id,
  108.                     in ODLinkSpec linkSpec);
  109.     
  110.     void        RemoveLink(in ODLink link);
  111.     
  112.     void        RemoveLinkSource(in ODLinkSource link);
  113.     
  114.     ODPersistentObjectID    GetPersistentObjectID(in ODPersistentObject object,
  115.                                     in ODObjectType objectType);
  116.     
  117.     ODPersistentObject AcquirePersistentObject(in ODPersistentObjectID objectID,
  118.                                             out ODObjectType objectType);
  119.  
  120.  
  121. #ifdef __SOMIDL__
  122.   implementation
  123.   {
  124.     majorversion = 1; minorversion = 0;
  125.       functionprefix = ODDraft;
  126.  
  127.     override:
  128.         somUninit,
  129.         Acquire,
  130.         Release;
  131.     releaseorder:
  132.         GetDocument,
  133.         GetID,
  134.         GetName,
  135.         SetName,
  136.         AcquireDraftProperties,
  137.         GetPermissions,
  138.         CreateStorageUnit,
  139.         AcquireStorageUnit,
  140.         RemoveStorageUnit,
  141.         BeginClone,
  142.         EndClone,
  143.         AbortClone,
  144.         Clone,
  145.         WeakClone,
  146.         ChangedFromPrev,
  147.         SetChangedFromPrev,
  148.         RemoveFromDocument,
  149.         RemoveChanges,
  150.         Externalize,
  151.         SaveToAPrevious,
  152.         CreateFrame,
  153.         AcquireFrame,
  154.         RemoveFrame,
  155.         CreatePart,
  156.         AcquirePart,
  157.         RemovePart,
  158.         CreateLinkSpec,
  159.         CreateLinkSource,
  160.         AcquireLinkSource,
  161.         AcquireLink,
  162.         RemoveLink,
  163.         RemoveLinkSource,
  164.         GetPersistentObjectID,
  165.         AcquirePersistentObject,
  166.         ReleasePart,
  167.         IsValidID,
  168.         reserved1,
  169.         reserved2,
  170.         reserved3,
  171.         reserved4,
  172.         reserved5,
  173.         reserved6,
  174.         reserved7,
  175.         reserved8,
  176.         reserved9,
  177.         reserved10,
  178.         reserved11,
  179.         reserved12,
  180.         reserved13;
  181. };
  182. #endif
  183. };
  184.  
  185. #endif  // _DRAFT_
  186.